home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / editors / eedraw / src / eep / eelibs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-03  |  1.0 KB  |  28 lines

  1. /*****************************************************************************
  2. *   Module to handle libraries.                             *
  3. *                                         *
  4. * Written by:  Gershon Elber            IBM PC Ver 1.0,    Oct. 1989    *
  5. *****************************************************************************/
  6.  
  7. #ifndef EELIBS_H
  8. #define EELIBS_H
  9.  
  10. #include "priorque.h"
  11.  
  12. /* The snap distance will be same as one pixel in the library definition, so */
  13. /* when libraries are scaled up on loading every pin will be destinuishable. */
  14. #define LIB_SCALE_DRAW    DEFAULT_SNAP_DISTANCE
  15.  
  16. typedef struct LibraryStruct {
  17.     char Name[9];                  /* Name of library loaded. */
  18.     int NumOfParts;            /* Number of parts this library has. */
  19.     PriorQue *Entries;             /* Parts themselves are saved here. */
  20.     struct LibraryStruct *Pnext;          /* Point on next lib in chain. */
  21. } LibraryStruct;
  22.  
  23. void LoadLibraryName(char *FullLibName, char *LibName);
  24. void LoadLibraries(char *LoadLibraryList);
  25. void DrawLibPart(DrawLibItemStruct *DrawLibItem);
  26.  
  27. #endif  EELIBS_H
  28.